package com.boot.web;

import com.boot.entity.UserDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Chunsheng.Zhang
 * @date 2021/3/30 23:11
 * @description : TODO
 */
@RestController
public class TestController
{

    @PostMapping("/test")
    public UserDTO test(@RequestBody UserDTO userDTO){
        System.out.println(userDTO.getAccount());
        return userDTO;
    }

}
